body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background-color: #595959;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.chat-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    background-color: #434343;
    border-radius: 10px;
    overflow: hidden;
}

.left-menu {
    width: 100px;
    padding: 10px;
    background-color: #cdcdcd;
    border-right: 1px solid #ccc;
}

.output {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    height: 400px;
}

.input-group {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin-top: 10px;
    background-color: #595959;
    border-radius: 10px;
    overflow: hidden;
}

.input-group-btn {
    display: flex;
    align-items: center;
    padding: 5px;
}

.input-group-btn button {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    margin-right: 5px;
}

.input-group-btn button:hover {
    opacity: 0.8;
}

.message-input {
    flex-grow: 1;
    padding: 10px;
    background-color: #434343;
    color: white;
    border: none;
    outline: none;
    font-size: 16px;
    resize: none;
    overflow-y: auto;
}

.send-btn {
    background-color: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 1px;
    width: 20%;
}

.send-btn:hover {
    opacity: 0.8;
}

.bubble {
    color: white;
    padding: 1px;
    border-radius: 1px;
    margin: 1px 0;
    max-width: 70%;
}

.rightbubble {
    color: #c4fc99;
    align-self: flex-end;
    margin-left: auto;
}

.leftbubble {
    color: #1890ff;
    align-self: flex-start;
    margin-right: auto;
}

.newmessage {
    display: flex;
    flex-direction: column;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.emoji-picker {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
}

.emoji-picker img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin: 2px;
}

@media (max-width: 600px) {
    .chat-container {
        flex-direction: column;
    }

    .left-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .output {
        width: 100%;
    }


    .message-input {
        height: 100px;
    }

    .send-btn {
        text-align: center;
    }
}

.image-button {
    background-image: url('/img/emoji/12.png'); /* 设置背景图片 */
    background-size: cover; /* 确保图片覆盖整个按钮 */
    background-repeat: no-repeat;
    width: 20px; /* 设置按钮宽度 */
    height: 20px; /* 设置按钮高度 */
    border: none; /* 移除默认边框 */
    cursor: pointer; /* 鼠标悬停时变为手型 */
    /*padding: 5px;*/
    margin: 2px;
}

.image-buttonimg68 {
    background-image: url('/img/emoji/68.png'); /* 设置背景图片 */
    background-size: cover; /* 确保图片覆盖整个按钮 */
    background-repeat: no-repeat;
    width: 20px; /* 设置按钮宽度 */
    height: 20px; /* 设置按钮高度 */
    border: none; /* 移除默认边框 */
    cursor: pointer; /* 鼠标悬停时变为手型 */
    /*padding: 5px;*/
    margin: 2px;
}


.image-buttonimg69 {
    background-image: url('/img/emoji/69.gif'); /* 设置背景图片 */
    background-size: cover; /* 确保图片覆盖整个按钮 */
    background-repeat: no-repeat;
    width: 20px; /* 设置按钮宽度 */
    height: 20px; /* 设置按钮高度 */
    border: none; /* 移除默认边框 */
    cursor: pointer; /* 鼠标悬停时变为手型 */
    /*padding: 5px;*/
    margin: 2px;
}

/* 可选：定义鼠标悬停效果 */
.image-button:hover {
    opacity: 0.8; /* 当鼠标悬停在按钮上时稍微降低透明度 */
}